#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QPushButton>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    /*************/
public slots:
    void ControlMove(int x,int y);
    /*************/
public:
    void lockbutton(QPushButton* button,bool state);
    void lockbutton(QPushButton* button);
private slots:
    void on_Button_Up_clicked();

    void on_Button_Down_clicked();

    void on_Button_Left_clicked();

    void on_Button_Right_clicked();

    void on_Button_Up_2_clicked();

    void on_Button_Down_2_clicked();

    void on_Button_Left_2_clicked();

    void on_Button_Right_2_clicked();

    void on_Button_Up_3_clicked();

    void on_Button_Left_3_clicked();

    void on_Button_Right_3_clicked();

    void on_Button_Down_3_clicked();

    void on_Button_Control_clicked();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
